.class Lcom/xingbook/park/ui/aq;
.super Landroid/widget/BaseAdapter;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/xingbook/park/ui/am;

.field private b:Ljava/util/ArrayList;

.field private c:F

.field private d:Landroid/widget/LinearLayout$LayoutParams;


# direct methods
.method public constructor <init>(Lcom/xingbook/park/ui/am;)V
    .locals 3

    iput-object p1, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/ui/aq;->b:Ljava/util/ArrayList;

    const/high16 v0, 0x420c

    invoke-static {p1}, Lcom/xingbook/park/ui/am;->a(Lcom/xingbook/park/ui/am;)F

    move-result v1

    mul-float/2addr v0, v1

    iput v0, p0, Lcom/xingbook/park/ui/aq;->c:F

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, 0x0

    const/4 v2, -0x1

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/xingbook/park/ui/aq;->d:Landroid/widget/LinearLayout$LayoutParams;

    iget-object v0, p0, Lcom/xingbook/park/ui/aq;->d:Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v1, 0x3f80

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->weight:F

    return-void
.end method


# virtual methods
.method public a(Ljava/util/List;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/aq;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    if-eqz p1, :cond_0

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/aq;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/park/ui/aq;->notifyDataSetChanged()V

    return-void
.end method

.method public a()Z
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/aq;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/aq;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    div-int/lit8 v0, v0, 0x2

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 4

    invoke-virtual {p0}, Lcom/xingbook/park/ui/aq;->getCount()I

    move-result v0

    if-ge p1, v0, :cond_2

    const/4 v0, 0x2

    new-array v1, v0, [Ljava/lang/String;

    mul-int/lit8 v0, p1, 0x2

    iget-object v2, p0, Lcom/xingbook/park/ui/aq;->b:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v0, v2, :cond_0

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/park/ui/aq;->b:Ljava/util/ArrayList;

    mul-int/lit8 v3, p1, 0x2

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    aput-object v0, v1, v2

    :cond_0
    mul-int/lit8 v0, p1, 0x2

    add-int/lit8 v0, v0, 0x1

    iget-object v2, p0, Lcom/xingbook/park/ui/aq;->b:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v0, v2, :cond_1

    const/4 v2, 0x1

    iget-object v0, p0, Lcom/xingbook/park/ui/aq;->b:Ljava/util/ArrayList;

    mul-int/lit8 v3, p1, 0x2

    add-int/lit8 v3, v3, 0x1

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    aput-object v0, v1, v2

    :cond_1
    move-object v0, v1

    :goto_0
    return-object v0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 9

    const/high16 v8, -0x100

    const/high16 v4, 0x4248

    const/high16 v7, 0x4170

    const/4 v6, 0x1

    const/4 v5, 0x0

    invoke-virtual {p0, p1}, Lcom/xingbook/park/ui/aq;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Ljava/lang/String;

    if-nez v0, :cond_0

    const/4 p2, 0x0

    :goto_0
    return-object p2

    :cond_0
    if-eqz p2, :cond_1

    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    instance-of v1, v1, Lcom/xingbook/park/ui/ar;

    if-eqz v1, :cond_1

    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/xingbook/park/ui/ar;

    :goto_1
    aget-object v2, v0, v5

    if-eqz v2, :cond_2

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->a:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    mul-int/lit8 v4, p1, 0x2

    add-int/lit8 v4, v4, 0x1

    invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "."

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    aget-object v4, v0, v5

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->a:Landroid/widget/TextView;

    aget-object v3, v0, v5

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->a:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_2
    aget-object v2, v0, v6

    if-eqz v2, :cond_3

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->b:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    mul-int/lit8 v4, p1, 0x2

    add-int/lit8 v4, v4, 0x2

    invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "."

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    aget-object v4, v0, v6

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->b:Landroid/widget/TextView;

    aget-object v0, v0, v6

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    iget-object v0, v1, Lcom/xingbook/park/ui/ar;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    :cond_1
    new-instance p2, Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-static {v1}, Lcom/xingbook/park/ui/am;->b(Lcom/xingbook/park/ui/am;)Landroid/content/Context;

    move-result-object v1

    invoke-direct {p2, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-static {v1}, Lcom/xingbook/park/ui/am;->a(Lcom/xingbook/park/ui/am;)F

    move-result v1

    mul-float/2addr v1, v4

    float-to-int v1, v1

    iget-object v2, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-static {v2}, Lcom/xingbook/park/ui/am;->a(Lcom/xingbook/park/ui/am;)F

    move-result v2

    mul-float/2addr v2, v7

    float-to-int v2, v2

    iget-object v3, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-static {v3}, Lcom/xingbook/park/ui/am;->a(Lcom/xingbook/park/ui/am;)F

    move-result v3

    mul-float/2addr v3, v4

    float-to-int v3, v3

    iget-object v4, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-static {v4}, Lcom/xingbook/park/ui/am;->a(Lcom/xingbook/park/ui/am;)F

    move-result v4

    mul-float/2addr v4, v7

    float-to-int v4, v4

    invoke-virtual {p2, v1, v2, v3, v4}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    invoke-virtual {p2, v5}, Landroid/widget/LinearLayout;->setOrientation(I)V

    const/high16 v1, 0x4000

    invoke-virtual {p2, v1}, Landroid/widget/LinearLayout;->setWeightSum(F)V

    new-instance v1, Landroid/widget/AbsListView$LayoutParams;

    const/4 v2, -0x1

    const/high16 v3, 0x42d8

    iget-object v4, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-static {v4}, Lcom/xingbook/park/ui/am;->a(Lcom/xingbook/park/ui/am;)F

    move-result v4

    mul-float/2addr v3, v4

    float-to-int v3, v3

    invoke-direct {v1, v2, v3}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {p2, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v1, Lcom/xingbook/park/ui/ar;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/xingbook/park/ui/ar;-><init>(Lcom/xingbook/park/ui/aq;Lcom/xingbook/park/ui/ar;)V

    new-instance v2, Landroid/widget/TextView;

    iget-object v3, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-static {v3}, Lcom/xingbook/park/ui/am;->b(Lcom/xingbook/park/ui/am;)Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, v1, Lcom/xingbook/park/ui/ar;->a:Landroid/widget/TextView;

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->a:Landroid/widget/TextView;

    iget v3, p0, Lcom/xingbook/park/ui/aq;->c:F

    invoke-virtual {v2, v5, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->a:Landroid/widget/TextView;

    invoke-virtual {v2, v8}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->a:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/xingbook/park/ui/aq;->d:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->a:Landroid/widget/TextView;

    invoke-virtual {v2, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->a:Landroid/widget/TextView;

    invoke-virtual {p2, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v2, Landroid/widget/TextView;

    iget-object v3, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-static {v3}, Lcom/xingbook/park/ui/am;->b(Lcom/xingbook/park/ui/am;)Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, v1, Lcom/xingbook/park/ui/ar;->b:Landroid/widget/TextView;

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->b:Landroid/widget/TextView;

    iget v3, p0, Lcom/xingbook/park/ui/aq;->c:F

    invoke-virtual {v2, v5, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->b:Landroid/widget/TextView;

    invoke-virtual {v2, v8}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->b:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/xingbook/park/ui/aq;->d:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->b:Landroid/widget/TextView;

    invoke-virtual {v2, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->b:Landroid/widget/TextView;

    invoke-virtual {p2, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    invoke-virtual {p2, v1}, Landroid/widget/LinearLayout;->setTag(Ljava/lang/Object;)V

    goto/16 :goto_1

    :cond_2
    iget-object v2, v1, Lcom/xingbook/park/ui/ar;->a:Landroid/widget/TextView;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_2

    :cond_3
    iget-object v0, v1, Lcom/xingbook/park/ui/ar;->b:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-static {v0}, Lcom/xingbook/park/ui/am;->c(Lcom/xingbook/park/ui/am;)Lcom/xingbook/park/ui/ap;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/aq;->a:Lcom/xingbook/park/ui/am;

    invoke-static {v0}, Lcom/xingbook/park/ui/am;->c(Lcom/xingbook/park/ui/am;)Lcom/xingbook/park/ui/ap;

    move-result-object v1

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-interface {v1, v0}, Lcom/xingbook/park/ui/ap;->a(Ljava/lang/String;)V

    :cond_0
    return-void
.end method
